package _01_Component;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


/**
 * @author 飞哥
 * @version V1.0
 * @package PACKAGE_NAME
 * @date 2021/7/31 17:51
 */
public class _01_Component {
    @Test
    public void test01() {
        ApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext.xml");
        Student myStudent = (Student) ac.getBean("myStudent");
        System.out.println("学生信息： " + myStudent);
    }

}
